How to List a DeFi Token on Uniswap?
The finance industry has been functioning with centralized exchanges for a very long time. Even when it comes to cryptocurrencies, the underlying models facilitating the functioning work in a centralized model. Although most people are familiar with the centralized models, many have also been the victims of its drawbacks and are now in search of decentralized models where they don’t have to trust a third party with their finances.
This is where Decentralized Finance (DeFi) comes into the picture. As the name suggests, decentralized finance is a way to conduct financial procedures in a decentralized manner, i.e., without any central authorities. There have been many projects to implement the concept in reality, such as decentralized exchanges. Decentralized exchange platforms are the platforms for cryptocurrency exchange, which do not require the users to deposit any funds to begin trading, as users can directly trade from their own wallets to make transactions. Hence, it facilitates peer-to-peer (P2P) transactions. Also known as DEXs, there are numerous decentralized exchange platforms that aim to provide the most secure and efficient DeFi services. One such platform is Uniswap. Listing tokens on Uniswap is not very difficult but still requires some technical expertise.
In this article, we will answer the following questions:
- What is Uniswap?
- How does Uniswap work?
- How to list a DeFi token on Uniswap?
- How to remove liquidity from Uniswap?
- What are the advantages of Uniswap?
Let’s begin by learning about the platform – Uniswap.
What is Uniswap?
Created by Hayden Adams, Uniswap is a decentralized exchange protocol built on Ethereum to swap ERC20 tokens. It functions as an automated liquidity protocol, which implies that it does not follow the traditional “order book” model. It allows users to swap tokens and trade without intermediaries, thus ensuring a high degree of decentralization. Normal centralized exchanges make a profit and charge high fees for listing new coins. Uniswap allows users to keep control of their funds. This is in contrast to centralized exchanges that require traders to give up control over their private keys to log orders on an internal database, and it is slower and more expensive. By retaining control of private keys, Uniswap eliminates the possibility of assets being lost if the exchange is ever compromised.
Uniswap is one of the most successful DeFi projects, not designed to charge fees. It acts as an open-source platform and uses token pools to determine prices without charging platform fees or listing fees. Any ERC-20 token can be launched on Uniswap if a liquidity pool is available.
Uniswap protocol currently has three versions. V1 and V2 are open source and licensed under GPL. V3 is also open source with modifications.. Uniswap V3, launched in May 2021, holds the features like multiple fee tiers and concentrated liquidity.
In simple terms, Uniswap is a protocol that enables its users to swap tokens directly from their wallets without any intermediaries or custody. With Uniswap, you can use smart contracts to:
- swap tokens
- add liquidity/ provide liquidity
- remove liquidity from pools
Now let’s learn about the native token of Uniswap.
Uniswap Token – UNI
The native token of the Uniswap protocol is UNI, which allows governance rights to its owners. All UNI holders can vote for changes to the protocol. Out of the UNI genesis supply, 60% of the tokens are allocated to the Uniswap community members. Over four years, the remaining 40% will be made available to team members, investors, and advisors.
UNI is available through the following four liquidity mining pools:
- ETH/USDT
- ETH/USDC
- ETH/DAI
- ETH/WBTC
UNI holders can vote for the addition of more pools after an introductory 30-day governance grace period.
Now that you have gained a basic understanding of Uniswap and its tokens, let’s move ahead to understand how it works.
How does Uniswap work?
Contrary to the traditional architecture of the “order book” model which many crypto exchange platforms use, Uniswap works with the help of the following two components:
- Liquidity Pools
- Constant Product Market Maker Protocol
Let’s begin by understanding what they mean.
Liquidity Pools
Simply defined, liquidity pools refer to token pools locked in smart contracts. They provide liquidity to facilitate trading. Several decentralized exchange platforms use liquidity pools.
Constant Product Market Maker Protocol
The constant product market maker protocol is a form of the much known automated market maker (AMM) model. Basically, automated market makers are smart contracts that hold liquidity pools. These pools are funded by liquidity providers so that the traders can trade against these pools. Traders pay a fee to the pool in return, which is proportionally divided among the liquidity providers, according to their shares. The constant product market maker protocol works similarly, along with the advantage that any token can be added to Uniswap if it is funded with an equal value of ETH or ERC20 token being traded.
So how does it work?
Liquidity Providers, also known as LPs, form a market by depositing two tokens of equivalent value, which can either be an ETH and an ERC-20 token or two ERC20 tokens. Mostly, these pools are made of stablecoins like DAI. Liquidity providers get liquidity tokens in return, which:
- depict their share in the liquidity pool
- can be redeemed for the share they represent.
The main idea behind Uniswap is that the total liquidity in the liquidity pool must remain constant. Let’s understand this with the help of an example.
The liquidity pool we’ll take into consideration is the ETH/USDT liquidity pool. Let’s refer to the ETH portion as x and the USDT portion as y. To calculate the pool’s total liquidity (which we will consider as k), Uniswap multiplies these two quantities
x x y = k
So, if you buy 1 ETH for 300 USDT via the ETH/USDT liquidity pool, you increase the USDT portion and reduce the ETH portion of the pool. This implies that the price of ETH will rise because k must remain constant, so the price of ETH is based on how much shift the given transaction/trade causes between x and y. This is the mechanism that determines the pricing. Hence, it is conceivable that with large liquidity pools, it is easier to process large trades as the shift between x and y is lower as compared to smaller liquidity pools.
This mechanism brings us to the concept of impermanent losses. What are impermanent losses? Let’s discuss.
LeewayHertz DeFi Development Services
Launch future-ready DeFi dApps and customized solutions for business transformation.
Impermanent Losses
Liquidity providers earn a fee for liquidity for traders to swap tokens. But often, liquidity providers don’t consider every aspect while providing liquidity to the pools. One such aspect is impermanent losses, which you’ll understand better with the help of an example.
Suppose there is a pool on Uniswap with 10 ETH and 1,000 USDT, and you deposit 1 ETH and 100 USDT. Token pairs have to be of equal value, which implies:
Price of 1 ETH = 100 USDT
This implies that you have a 10% share of the pool. The total liquidity here will be 10,000. If a few trades occur and cause a shift in the ratio of USDT and ETH to 2,000 and 5, respectively, the price of 1 ETH will rise to 400 USDT. Why? This is precisely what we discussed earlier, i.e., the total liquidity must be constant. So, the arbitrage traders will remove ETH and add USDT to the pool until the ratio stabilizes.
At this price, according to your 10% share, you own 0.5 ETH and 200 USDT (total 400 USDT), which is lesser than what you had deposited (total 500 USDT at this price). The loss here is “impermanent” because as long as you don’t withdraw your funds from the pool, this loss can be recovered or balanced:
- when the price of ETH returns to its original value, i.e., 100 USDT.
- by earning LP fees over time.
However, if you withdraw your funds now, your loss will become permanent as you’ll only receive a total value of 400 USDT.
Now that we have explained the working of Uniswap let’s discuss how you can list a DeFi token on Uniswap.
How to list a DeFi token on Uniswap?
In order to list your DeFi token on Uniswap, there are a few prerequisites which you must take care of:
- Install MetaMask
- Deploy your ERC20 token contract to Ethereum mainnet
- Send your ERC20 tokens to your MetaMask wallet
Now, take the following steps to list your DeFi token on Uniswap:
Create an Exchange
The first thing you need to do is create an exchange so that Uniswap knows about your token. You may take the following steps to create an exchange:
Step 1: Go to https://uniswap.exchange/ This screen will appear.
Step 2: Connect with your MetaMask Wallet.
As you can see, it will give a few other options to connect a wallet and ask you to download MetaMask if you haven’t done it already.
Step 3: Select the “Pool” option on the upper right corner of the screen.
Step 4: Select “Create Exchange”
Step 5: Press the “Select a Token”option.
Step 6: Enter your token’s address in the “Search Name or Address” field. Now select your token from the dropdown.
Step 7: Click on the “Create Exchange”option.
Step 8: A pop-up will show up. Click on the “Confirm” option.
Add Liquidity
Now that you have created an exchange for your tokens, it is time to add liquidity. You will have to deposit both ETH and your own token. The price will be set according to how many tokens you deposit. Why? Because, as we discussed earlier, the tokens are supposed to be deposited in pairs and should be of equal value, as the total liquidity of the pool must remain constant. Hence, if you deposit 1 ETH with 1 of your token, then it would imply that your token price will be equal to 1 ETH.
Step 1:Click on the dropdown on the same page and press “Add Liquidity.”
Step 2: Put in the amount of ETH you wish to deposit.
Step 3: Now select the “Select a Token” option.
Step 4: Enter your token’s address in the “Token Address” field and select your token from the dropdown.
Step 5: Press the “Unlock” option. You’ll find it next to your token symbol.
Step 6: Click on “Confirm” once the pop-up shows up. Your transaction will be confirmed.
Step 7: Now, in the same way, enter the amount of your tokens you wish to deposit. Make sure to check the calculated exchange rate.
Step 8: Now, select the “Add Liquidity” option and click “Confirm” once the pop-up shows up.
You have now listed your token to Uniswap exchange.
Now let’s discuss the steps you should follow in order to swap your token for ETH.
How to remove liquidity from Uniswap?
Suppose you sell your tokens to investors and wish to remove your liquidity/deposits from the platform. You may follow the following steps to do so:
Step 1: Go to https://uniswap.exchange/remove-liquidity.
Step 2:Press the “Select a Token” option.
Step 3: Put in your token’s address in the “Token Address”field.
Step 4:Choose your token from the dropdown.
Step 5: Uniswap will provide you with your pool’s balance. Enter the amount you wish to withdraw.
Step 6: Uniswap will show you the funds you’ll receive for both ETH and your token. Press the “Remove Liquidity” option.
Step 7: Select the “Confirm” option when the MetaMask pop-up shows up.
Now you understand how Uniswap works and how you can use it. But why should you use it? What makes Uniswap the better option in comparison to traditional crypto exchanges? There are several advantages it offers, and let’s learn more about them.
What are the advantages of Uniswap?
Uniswap offers many advantages, which make it the preferable choice as compared to the traditional crypto exchanges, such as:
- Anonymity
- Security
- Trustlessness
- New Tokens
- Low Fees
- Open source
Let’s discuss these advantages in detail.
Anonymity
Since AMM procedures are permissionless, Uniswap offers anonymity, which implies that you don’t have to reveal your identity to trade tokens. Peer-to-peer (P2P) transactions can occur directly from your wallet. Hence, the only identifier required is your public wallet address.
Security
Uniswap provides high-rank security. As the protocol is non-custodial, it does not hold any funds. Also, its smart contracts have been audited by several teams, which makes it more reliable.
Trustlessness
As we discussed earlier, Uniswap is a non-custodial protocol. It does not hold any funds, and there are no intermediaries involved. Hence, all trades take place directly from your wallets. You are the custodian, with the responsibility of your:
- tokens
- private keys
New Tokens
Uniswap provides its users with instant trading access to new tokens. Users can create an ERC20 token and then pair it with ETH to produce liquidity for new pools.
Low Fees
Uniswap is not designed to charge fees and does not charge its users any platform fees or listing fees. The only cost it incurs is a 0.3% fee per trade, which is very low compared to other protocols or centralized exchanges.
Open source
Uniswap is also completely open source, meaning anyone can copy the code to create their decentralized trades.
Conclusion
Uniswap is a very innovative protocol built on Ethereum and allows anyone with an Ethereum wallet to exchange token without the involvement of any intermediaries. Its advantages have gained much traction from the right investors, and it is an intriguing step toward a trustless and decentralized financial system. It is now a critical infrastructure for decentralized financing, enabling developers, traders and liquidity providers to participate in a safe and secure financial market.
If you wish to get a DeFi application developed for your business or to get started with Uniswap, contact LeewayHertz blockchain experts.
Start a conversation by filling the form
All information will be kept confidential.
Insights
Gen AI in HR operations: Overview, use cases, challenges and future trends
The integration of generative AI has the potential to reshape HR processes, improve personalization, optimize recruitment, and enhance employee satisfaction.
Generative AI in corporate accounting: Integration, use cases, challenges, ROI evaluation, and future outlook
Incorporating generative AI into corporate accounting transforms workflow processes, promoting efficiency and accuracy while allowing professionals to concentrate on more strategic and advisory roles.
Generative AI use cases for manufacturing: Approaches, use cases and future outlook
Generative AI transforms manufacturing by streamlining operations, fostering innovation, and enabling personalized production.